<?php
/*
 * TODO: Add copyright message...
 */

/**
 * NextOfKin domain model
 *
 * @category    RedCross
 * @package     Core_Model
 */
class Core_Model_NextOfKin extends RedCross_Gateway_Base_NextOfKin
{

    public function init()
    {
    }

    public function getId()
    {
        return (int)$this->id;
    }

    public function getFullName()
    {
        return $this->firstName . ' ' . $this->lastName;
    }

    public function getPostalCode()
    {
        if(!is_null($this->postal_id)) {
            return (int) $this->postal_id;
        }
        return $this->postal_id;
    }

    public function getPostalPlace()
    {
        if(!is_null($this->postal_id)) {
            return $this->Postal->area;
        }
        return;
    }

}

?>